<template>
  <el-card>
    <div class="header">
      <i
        :class="{
          'el-icon-s-fold': !isCollapse,
          'el-icon-s-unfold': isCollapse,
        }"
        @click="$emit('toggle-collapse')"
      ></i>
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item
          v-for="(item, index) in $route.matched"
          :key="index"
          style="font-size: 18px"
        >
          {{ item.name }}
        </el-breadcrumb-item>
      </el-breadcrumb>
    </div>
  </el-card>
</template>

<script>
export default {
  props: ["isCollapse"],
};
</script>

<style scoped>
.el-breadcrumb ::v-deep .el-breadcrumb__inner {
  color: #4f5c97 !important;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px; 
}
</style>